using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using MH.WsdlWorks.ProjectModel;

namespace MH.WsdlWorks
{
    [CLSCompliant(false), ComVisible(true)]
    public class WsdlNodeProperties : SimpleNodeProperties
    {
        Wsdl wsdl;

        public WsdlNodeProperties(WsdlNode node) : base(node)
        {
            wsdl = node.Wsdl;
        }

        public override string GetClassName()
        {
            return "Wsdl";
        }

        [Category("Misc")]
        [DisplayName("WSDL URL")]
        [Description("This is the URL of the WSDL file")]
        public string Url
        {
            get
            {
                return wsdl.Url.ToString();
            }
        }

        [Category("Misc")]
        [DisplayName("Service URL")]
        [Description("The URL of the service provided by the WSDL file")]
        public string ServiceUrl
        {
            get
            {
                return wsdl.ServiceUrl;
            }
        }
    }
}
